home *** CD-ROM | disk | FTP | other *** search
- on SETSPEAKER
- global volume
- if volume = 0 then
- set the soundLevel to 0
- updateStage()
- end if
- if volume = 1 then
- set the soundLevel to 1
- updateStage()
- end if
- if volume = 2 then
- set the soundLevel to 2
- updateStage()
- end if
- if volume = 3 then
- set the soundLevel to 3
- updateStage()
- end if
- if volume = 4 then
- set the soundLevel to 4
- updateStage()
- end if
- if volume = 5 then
- set the soundLevel to 5
- updateStage()
- end if
- if volume = 6 then
- set the soundLevel to 6
- updateStage()
- end if
- if volume = 7 then
- set the soundLevel to 7
- updateStage()
- end if
- end
-
- on TRAPDOOR
- puppetSprite(46, 1)
- set x to the locH of sprite 46
- set Y to the locV of sprite 46
- set x to x + 30 - random(35)
- set Y to Y + 30 - random(35)
- set x to x mod 640
- set Y to Y mod 480
- set the locH of sprite 46 to x
- set the locV of sprite 46 to Y
- end
-